// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 64;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You begin your ascent of the Pilgrimage Road, the main route through the middle of the Rokaj. To the north, it ascends into foothills, followed by jagged mountains. Far above you, an icy peak rises into the clouds.";
	text2 = "This is an old, old road, and it has been rebuilt and repaired many times. Each conquerer of the Rokaj made its contribution. Long stretches of worn cobblestone change to gravel and then to smooth paving stones. The stretches built by Haven are the nicest. For now.";
	text3 = "The warm comforts of the Gentle Coast are behind you. You are entering the old Ro now. The Ro that fights.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "The grass along this pathway is rich and lush, and tall, leafy trees become more common. The air is warm and fresh. And yet, you can't enjoy the beauty. The deeper into these woods you get, the more you feel you are being watched.";
	text2 = "You are entering the Kranas Woods, one of the four provinces of the Rokaj. Home of iron mines, stern druids, and unpredictable magic infusing the land.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "As you climb to the east, the grass starts to die off. The air grows hot and dry, and the grass is reduced to thin patches, which then disappear. Leafy trees are all behind you, replaced by palm trees and hardy cacti.";
	text2 = "Huge stone pillars line the road. They loom far over your head. At first, you thought they were natural. Closer inspection reveals them to be made by humans. Massive, intimidating works of sculpture.";
	text3 = "You are entering the Low Dhaga, one of the four provinces of the Rokaj. A land of dry hills, dusty quarries, and skilled stoneworkers. Also a land of violent, insular clans and some of the most industrious raiders the Empire of Haven has to offer.";	
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0 && ((party_has_item(585)) || (party_has_item(586)) || (party_has_item(587)));
	text1 = "You suddenly see movement out of the corner of your eye. You turn and look at the river and see something astonishing. A fleet of sailing ships, each flying the black skull flag of the ocean pirate, is making its way up the river into the interior of the Rokaj.";
	text2 = "It seems impossible. These are full sailing ships. How could they manage their way up the wild, rocky rivers of the Rokaj?";
	text3 = "And then, a moment later, they vanish. Gone. You only see a river. Strange.";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a band of warriors of the Rokaj on the road. They stand on the stone, blocking your path. They are thin and wiry, worn by a lifetime of harsh weather. When you approach, they look at you coldly.";
	text2 = "Their leader steps forward. She plants her spear in the ground and says, _This road is claimed by the Rokaj. You are intruders here. If you want to proceed, you must walk around us._";
	code =
		sf(164,14,1);
		cancel_out_fight(0,0);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_I am a [P] of Haven. I won't walk in the mud._";
	text1 = "The leaders sneers. _We claim this road. You must walk around us._";
	text2 = "You notice that not all of the warriors seem as determined to fight as she is.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(10,11) > 0;
	question = "_I received permission to travel this road from the Raasa of the Gentle Coast._";
	text1 = "Their leader spits in the dirt. _That is what we think of the Gentle Coast. They are weaklings. Haven has bought them. Their words have no power here._";
	text2 = "The other warriors are growing more nervous.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_Maybe we can work out some arrangement to buy passage?_";
	text1 = "The Ro are surprised by this response. They laugh at you.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_Get out of my way or fight._";
	text1 = "The warriors look at each other. They quietly stare at each other, for a while. It is strange and tense.";
	text2 = "Finally, all as one, the Ro warriors step off the road. You silently walk by them. Eventually you look back. The warriors stand there, in the mud, staring at you, until you are out of sight.";
	action = END_TALK;
	code =
		ro_faction(2);
		violence(2);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_Fine. I don't want trouble._ Walk around in the mud.";
	text1 = "You surrender and step off the road. You expect the Rokaj to jeer and taunt you. They don't. If anything, they seem disturbed by your submission.";
	text2 = "Shaking their heads, they walk down the road to the south.";
	action = END_TALK;
	code =
		ro_faction(-2);
		violence(-2);
	break;

//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = gf(164,13) == 0;
	question = "Name";
	text1 = "The Pilgrimage Road is defended by a massive stone wall. The best Low Dhagan craftsmanship, centuries old.";
	text2 = "When you try to pass through, some warriors of the Rokaj block your path. A mage of the Erudico approaches to speak with you.";
	text3 = "_The envoys of Haven. We have heard of you. Ahead are the provinces of the Ro and the Tower of the Erudico. To pass and enter the lands of the Rokaj, you require our permission._";
	code =
		sf(164,13,1);
		cancel_out_fight(0,0);
	break;
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_The Pilgrimage Road is well-guarded._";
	text1 = "_Yes. The clans of the Rokaj are always fighting and raiding and squabbling. However, by old tradition, the Pilgrimage Road is safe ground. We do not fight each other here. Those who break this law attract the anger of the High Litha. And, if necessary, the Geld Nas._";
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Where do I get permission?_";
	text1 = "_It is an old tradition. You must request it from Raasa Elha, who sits in the coast city of Laskara._";
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_I am a [P] of Haven. I don't need permission to travel through our vassals._";
	text1 = "_Need? Perhaps not. But it is tradition. It is important to us. The Rokaj expect respect, and Haven has not shown us respect for a long time._";

begintalknode;
	state = 40;
	nextstate = 41;
	condition = gf(10,11) == 0;
	question = "_I haven't gotten permission yet._";
	text1 = "_Then we ask that you go to Laskara and get it. It is an age-old way Haven shows respect to the proud warriors of the Ro. A simple ceremony, but of great importance._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_I will go to Laskara, then._";
	text1 = "_Thank you, [P]. We are honored by your understanding._ You move on.";
	action = END_TALK;
	

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_I refuse to get permission. Vassals have no right to stop me._ Walk by.";
	text1 = "You brush past the guards. They are shocked by your disrespect, but they make no move to stop you.";
	action = END_TALK;
	code =
		sf(164,13,2);
		ro_faction(-2);
		violence(1);
	break;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(10,11) > 0;
	question = "_I have received permission from Laskara._";
	text1 = "The guards step aside. _Then welcome to the inner Rokaj. The true Rokaj. We hope that respect and improvement come from your visit._";
	action = END_TALK;
	code =
		sf(164,13,2);
		ro_faction(1);
	break;

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = gf(164,11) == 0;
	question = "Name";
	text1 = "The Pilgrimage Road is well-guarded, so you are surprised to find the ruins of a caravan here. Rain has washed the tracks away, but someone attacked it. The wagons have been smashed, and refuse has been strewn everywhere.";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "Search the area.";
	text1 = "The wagon contains nothing of value. If any merchants were killed, their remains were dragged away. The only thing you find of note is a moon symbol painted on the side of the wagon. Probably a clan marking. The owners of the wagon might be interested.";
	text2 = "As you leave, you find that your escape route has been blocked. The creatures who destroyed the caravan have come hoping for fresh prey.";
	action = END_TALK;
	code =
		sf(164,11,1);
		make_outdoor_enc(200,295,0);
	break;
		
begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "Leave quickly.";
	text1 = "You get out of here before whoever destroyed the caravan can find you.";
	action = END_TALK;
	

//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				